package com.wanlian.candy.controller.vo;

import com.wanlian.entity.Device;
import com.wanlian.json.JsonStringUtil;

import java.sql.Timestamp;
import java.util.List;

public class AppUserInfo {

    private int id;
    private String username;
    private String phone;
    private boolean isEnable;
    private String remark;
    private String headImg;
    private boolean sex;
    private Timestamp birthday;
    private String email;
    private String sessionId;
    private String intAccount;
    private String userTag;
    private String sord;
    private Device currentDevice;
    private String devicekey;
    private boolean review;


    private List<Device>bindDevices;

    /**
     * 设备台数
     */
    private int devCount;

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public boolean isEnable() {
        return isEnable;
    }

    public void setEnable(boolean enable) {
        isEnable = enable;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public Timestamp getBirthday() {
        return birthday;
    }

    public void setBirthday(Timestamp birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getDevCount() {
        return devCount;
    }

    public void setDevCount(int devCount) {
        this.devCount = devCount;
    }

    public String toString(){
        return JsonStringUtil.writeValueAsString(this);
    }

    public String getIntAccount() {
        return intAccount;
    }

    public void setIntAccount(String intAccount) {
        this.intAccount = intAccount;
    }

    public String getUserTag() {
        return userTag;
    }

    public void setUserTag(String userTag) {
        this.userTag = userTag;
    }

    public String getSord() {
        return sord;
    }

    public void setSord(String sord) {
        this.sord = sord;
    }

    public Device getCurrentDevice() {
        return currentDevice;
    }

    public void setCurrentDevice(Device currentDevice) {
        this.currentDevice = currentDevice;
    }

    public String getDevicekey() {
        return devicekey;
    }

    public void setDevicekey(String devicekey) {
        this.devicekey = devicekey;
    }



    public List<Device> getBindDevices() {
        return bindDevices;
    }

    public void setBindDevices(List<Device> bindDevices) {
        this.bindDevices = bindDevices;
    }

    public boolean isReview() {
        return review;
    }

    public void setReview(boolean review) {
        this.review = review;
    }
}
